package com.sunxu.exercise5;

/**
 * ${DESCRIPTION}
 *
 * @author Sun
 * @create 2017-08-02-13:00
 */
public class Run4 {
    public static void main(String[] args) {
        try {
            SynchronizedObject object = new SynchronizedObject();
            MyThread4 myThread4 = new MyThread4(object);
            myThread4.start();
            Thread.sleep(50000000);
            myThread4.stop();
            System.out.println(object.getUsername() + " " + object.getPassword());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
